// Create IE + others compatible event handler
var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
var eventer = window[eventMethod];
var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";

// Listen to message from child window
eventer(messageEvent,function(e) {

	if (e.data.carsFrameMsg == true)
      document.getElementById('carPreviewFrame').height = e.data.height + 'px';
	},false);

